package cn.yotta.user.core.server.converter;

import cn.yotta.user.api.params.user.UserPageRequest;
import cn.yotta.user.api.vo.UserVo;
import cn.yotta.user.core.server.dto.user.UserDto;
import cn.yotta.user.core.server.entity.User;
import org.mapstruct.Mapper;


/**
 * @author wyaoyao
 * @date 2022/11/8 17:56
 */
@Mapper(componentModel = "spring")
public interface UserConverter {

    UserDto model2Dto(User user);

    UserVo dto2Vo(UserDto userDto);

    User toModel(UserPageRequest request);
}
